import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

//导入全局样式表
import "./assets/css/global.css";

//引入axios拦截器
import axios from "@/utils/request.js"
Vue.prototype.$axios = axios;

//按需引入elementui.js'
import './ElementUi/elementui.js'
import 'element-ui/lib/theme-chalk/index.css';

//导入并使用全局方法和变量
import Global from './Global';
Vue.use(Global);

//注册全局列表li组件
import MiList from './components/list.vue'
Vue.component('MiList',MiList)


// 注册全局注册组件
import RegisterModule from './components/RegisterModule.vue'
Vue.component('RegisterModule',RegisterModule)

// 注册全局登陆组件
import LoginModule from './components/LoginModul.vue'
Vue.component('LoginModule',LoginModule)




Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')